<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <div>
            <h:form>
                <h:commandButton value="Submit" action="#{loginManagedBean.cambiarIdiomaEsp}" image="/resources/images/es.png"/>
                <nbsp></nbsp>
                <h:commandButton value="Submit" action="#{loginManagedBean.cambiarIdiomaIng}" image="/resources/images/in.png"/>
            </h:form>
            <h:form rendered="#{!loginManagedBean.logado}">
                <h1><h:outputText value="Login"/></h1>
                <p:growl id="growl" />
                <h:panelGrid columns="2">
                    <h:outputLabel value="Email" for="user" />
                    <br/>
                    <h:inputText id="user" value="#{loginManagedBean.usuario.email}" title="User" required="true" requiredMessage="The User field is required."/>
                    <br/>
                    <h:outputLabel value="#{msgs.pass}:" for="password" />
                    <br/>
                    <h:inputSecret id="password" value="#{loginManagedBean.usuario.password}" title="Password" required="true" requiredMessage="The Password field is required."/>
                    <br/>
                    <h:commandButton value="Login" action="#{loginManagedBean.login}" />
                </h:panelGrid>
                <h:link rendered="#{!loginManagedBean.logado}" value="#{msgs.registrate}" outcome="signup" />

            </h:form>
            <h:form>
                <br/><br/><br/>
            
            </h:form>
        </div> 
    </h:body>
</html>
